package com.life.ai.server.common.utils;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.IdUtil;

/**
 * 时间工具类
 * IdUtils
 *
 * @author kylewka
 * @since 2023/11/21
 */
public class IdUtils extends IdUtil {

    public static String datetimeMsId() {
        return DateUtil.format(DateUtil.date(), "yyMMddHHmmssSSS");
    }

    public static String datetimeSeId() {
        return DateUtil.format(DateUtil.date(), "yyMMddHHmmss");
    }

    public static String randomCode() {
        return fastSimpleUUID().toUpperCase().substring(0,8);
    }

}
